package com.paziy.jan.graphics.figures;

import com.paziy.jan.graphics.Color;

public class Ellipse extends Rectangle {

    public Ellipse() {
        super();
    }

    public Ellipse(int x, int y, int height, int width) {
        super(x, y, height, width);
    }

    public Ellipse(int x, int y, int height, int width, Color color) {
        super(x, y, height, width, color);
    }

    @Override
    public void draw() {
        System.out.println(toString());
    }

    @Override
    public String toString() {
        return "Rectangle: x: " + getX() + "; y: " + getY() + "; Height: " + getHeight() + "; Width: " + getWidth() +
                "; " + getColor() + ";";
    }
}
